﻿
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Sharp.Portal.Other;

namespace Sharp.Portal
{
    /// <summary>
    /// 查询列特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class QueryOptionAttribute : System.Attribute
    {
        /// <summary>
        /// 查询列特性
        /// </summary>
        public QueryOptionAttribute()
        {
            this.Option = QueryFeature.Queryable;
        }
        /// <summary>
        /// 查询列特性
        /// </summary>
        /// <param name="option"></param>
        public QueryOptionAttribute(QueryFeature option)
        {
            this.Option = QueryFeature.Queryable | option;
        }

        /// <summary>
        /// 查询选项
        /// </summary>
        public QueryFeature Option { get; set; }
    }
}
